package com.zhiyou.brank.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.zhiyou.brank.mapper.FlyBrand_inform;
import com.zhiyou.brank.service.FlyBrand_informService;
import com.zhiyou.model.FyBrand_inform;
@Service
public class FlyBrand_informServiceImpl implements FlyBrand_informService{
@Autowired
FlyBrand_inform flyBrand_inform;
	@Override
	public void brand_informAdd(FyBrand_inform fyBrand_inform) {
		flyBrand_inform.brand_informAdd(fyBrand_inform);
	}

	@Override
	public void brand_informUpdate(FyBrand_inform fyBrand_inform) {
		flyBrand_inform.brand_informUpdate(fyBrand_inform);
	}

	@Override
	public void brand_informDelete(Integer brand_inform_id) {
		System.out.println("我哈哈哈");
		flyBrand_inform.brand_informDelete(brand_inform_id);
	}

	@Override
	public List<FyBrand_inform> brand_informSelectAll() {
		return flyBrand_inform.brand_informSelectAll();
	}

	@Override
	public FyBrand_inform brand_informSelectById(Integer brand_inform_id) {
		FyBrand_inform brand_informSelectById = flyBrand_inform.brand_informSelectById(brand_inform_id);
		brand_informSelectById.setBrand_inform_read(brand_informSelectById.getBrand_inform_read()+1);
		flyBrand_inform.brand_informUpdateById(brand_informSelectById);
		return brand_informSelectById;
	}

	
}
